<template>
	<view class="page">
		<view class="flex benben-position-layout flex flex-wrap align-center historicalFeedback_flex_0"
			:style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx'}">
			<view class='flex flex-wrap align-center justify-between flex-sub historicalFeedback_fd0_0'>
				<view class='flex flex-wrap align-center' @tap.stop="handleJumpDiy" data-type="back" data-url="1">
					<text class='fu-iconfont2  historicalFeedback_fd0_0_c0_c0'>&#xE794;</text>
				</view>
				<text class='historicalFeedback_fd0_0_c1'>历史反馈</text>
				<view class='flex flex-wrap align-center historicalFeedback_fd0_0_c2'>
				</view>
			</view>

		</view>
		<view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
		<view class="loading_css" v-if="isShow">
			<u-loading size="36" color="#1593FF"></u-loading>
			<view>加载中</view>
		</view>
		<template v-else>
			<!---flex布局flex布局开始-->
			<view class="flex flex-direction flex-wrap align-stretch benben-flex-layout historicalFeedback_flex_1">
				<template v-for='(item,key0) in dataList'>
					<view class='flex flex-direction flex-wrap align-stretch historicalFeedback_fd1_0' :key='key0'>
						<view class='flex flex-wrap align-center historicalFeedback_fd1_0_c0'>
							<image class='historicalFeedback_fd1_0_c0_c0' mode="aspectFill" :src='userInfo.head_img'>
							</image>
							<view class='flex flex-wrap align-center flex-sub historicalFeedback_fd1_0_c0_c1'>
								<text class='historicalFeedback_fd1_0_c0_c1_c0'>{{item.body}}</text>
								<!-- <image class='historicalFeedback_fd1_0_c0_c1_c1' mode="aspectFit"
									:src='STATIC_URL+"50.png"'></image> -->
							</view>
						</view>
						<view class='flex flex-wrap align-center historicalFeedback_fd1_0_c1'
							v-if="item.thumb.length > 0">
							<view class='flex flex-wrap align-center historicalFeedback_fd1_0_c1_c0'
								v-for="(v, k) in item.thumb" :key="k">
								<image @tap.stop="previewImage(k, item.thumb)" class='historicalFeedback_fd1_0_c1_c0_c0' mode="aspectFill" :src='v'></image>
							</view>
						</view>
						<view class='flex flex-wrap align-center historicalFeedback_fd1_0_c2'>
							<text class='historicalFeedback_fd1_0_c2_c0'>联系方式：</text>
							<text class='historicalFeedback_fd1_0_c2_c1'>{{item.contact}}</text>
						</view>
						<view class='flex flex-wrap align-center historicalFeedback_fd1_0_c3'>
							<text class='historicalFeedback_fd1_0_c3_c0'>反馈类型：</text>
							<text class='historicalFeedback_fd1_0_c3_c1'>{{item.operationsuggestionstype_title}}</text>
						</view>
						<view class='flex flex-wrap align-center historicalFeedback_fd1_0_c4'>
							<text class='historicalFeedback_fd1_0_c4_c0'>反馈时间：</text>
							<text class='historicalFeedback_fd1_0_c4_c1'>{{item.create_time}}</text>
						</view>
						<view class='flex flex-wrap align-center historicalFeedback_fd1_0_c5'
							v-if="item.is_replay=='1'">
							<text class='historicalFeedback_fd1_0_c5_c0'>平台回复：</text>
							<text class='flex-sub historicalFeedback_fd1_0_c5_c1'>{{item.replay}}</text>
						</view>
					</view>
				</template>
			</view>
			<!---flex布局flex布局结束-->
			<view class="noData" v-if="dataList.length == 0 && !isShow">
				<image :src='STATIC_URL+"no.png"'></image>
			</view>
		</template>
	</view>
</template>
<script>
	import {
		validate
	} from '@/common/utils/validate.js'
	export default {
		components: {},

		data() {
			return {
				"dataList": [],
				"isShow": true,
			};
		},
		computed: {
			userInfo: {
				get() {
					return this.$store.state.userInfo
				},
				set() {
					this.$store.commit('updateUserInfo', value)
				},
			}
		},
		watch: {},
		onLoad(options) {
			this.getdataList()
		},
		onUnload() {

		},
		onReady() {

		},
		onShow() {

		},
		onHide() {

		},
		onResize() {

		},
		onPullDownRefresh() {

		},
		onReachBottom(e) {

		},
		onPageScroll(e) {

		},
		methods: {
			//获取历史反馈
			async getdataList() {
				//请求方法
				//数据验证

				let dataListData = await this.$api.post(global.apiUrls.post6309bdb27de23, {

				});
				this.isShow = false;
				if (dataListData.data.code != 1) {
					this.$message.info(dataListData.data.msg);
					return
				}
				let dataListinfo = dataListData.data.data;
				this.dataList = dataListinfo;
			},
			previewImage(index, url) {
				uni.previewImage({
					current: index, // 当前显示图片的索引值
					urls: url, // 需要预览的图片列表，photoList要求必须是数组
				})
			},
		}
	};
</script>
<style lang="scss" scoped>
	.historicalFeedback_fd1_0 {
		border-bottom: 1px solid #eee;
	}

	.historicalFeedback_fd1_0_c0 {
		margin: 24rpx 0rpx 16rpx 0rpx;
		padding: 0rpx 32rpx 0rpx 0rpx;
	}

	.historicalFeedback_fd1_0_c0_c0 {
		width: 72rpx;
		height: 72rpx;
		border-radius: 36rpx 36rpx 36rpx 36rpx;
	}

	.historicalFeedback_fd1_0_c0_c1 {
		margin: 0rpx 0rpx 0rpx 16rpx;
		position: relative;
	}

	.historicalFeedback_fd1_0_c0_c1_c0 {
		line-height: 43rpx;
		font-size: 28rpx;
		font-weight: 500;
		color: #333333;
	}

	.historicalFeedback_fd1_0_c0_c1_c1 {
		width: 32rpx;
		height: 32rpx;
		position: absolute;
		bottom: 0rpx;
		right: 0rpx;
	}

	.historicalFeedback_fd1_0_c1 {
		padding: 0rpx 32rpx 0rpx 59rpx;
	}

	.historicalFeedback_fd1_0_c1_c0 {
		margin: 0rpx 0rpx 24rpx 29rpx;
	}

	.historicalFeedback_fd1_0_c1_c0_c0 {
		width: 180rpx;
		height: 180rpx;
		border-radius: 16rpx 16rpx 16rpx 16rpx;
	}

	.historicalFeedback_fd1_0_c2 {
		padding: 0rpx 32rpx 0rpx 88rpx;
		margin: 0rpx 0rpx 32rpx 0rpx;
	}

	.historicalFeedback_fd1_0_c2_c0 {
		line-height: 33rpx;
		font-size: 24rpx;
		font-weight: 400;
		color: #333333;
	}

	.historicalFeedback_fd1_0_c2_c1 {
		line-height: 33rpx;
		font-size: 24rpx;
		font-weight: 400;
		color: #333333;
	}

	.historicalFeedback_fd1_0_c3 {
		padding: 0rpx 32rpx 0rpx 88rpx;
		margin: 0rpx 0rpx 16rpx 0rpx;
	}

	.historicalFeedback_fd1_0_c3_c0 {
		line-height: 33rpx;
		font-size: 24rpx;
		font-weight: 400;
		color: #999999;
	}

	.historicalFeedback_fd1_0_c3_c1 {
		line-height: 33rpx;
		font-size: 24rpx;
		font-weight: 400;
		color: #999999;
	}

	.historicalFeedback_fd1_0_c4 {
		padding: 0rpx 32rpx 0rpx 88rpx;
		margin: 0rpx 0rpx 32rpx 0rpx;
	}

	.historicalFeedback_fd1_0_c4_c0 {
		line-height: 33rpx;
		font-size: 24rpx;
		font-weight: 400;
		color: #999999;
	}

	.historicalFeedback_fd1_0_c4_c1 {
		line-height: 33rpx;
		font-size: 24rpx;
		font-weight: 400;
		color: #999999;
	}

	.historicalFeedback_fd1_0_c5 {
		background: #F8F8F8;
		background-size: 100% !important;
		width: 598rpx;
		height: 88rpx;
		border-radius: 10rpx 10rpx 10rpx 10rpx;
		margin: 0rpx 0rpx 32rpx 88rpx;
		padding: 0rpx 16rpx 0rpx 16rpx;
	}

	.historicalFeedback_fd1_0_c5_c0 {
		line-height: 40rpx;
		font-size: 28rpx;
		font-weight: 400;
		color: rgba(21, 125, 251, 1);
	}

	.historicalFeedback_fd1_0_c5_c1 {
		line-height: 40rpx;
		font-size: 28rpx;
		font-weight: 400;
		color: #333333;
	}

	.historicalFeedback_flex_1 {
		padding: 0rpx 0rpx 0rpx 32rpx;
	}

	.historicalFeedback_fd0_0 {
		padding: 0rpx 32rpx 0rpx 32rpx;
		height: 88rpx;
	}

	.historicalFeedback_fd0_0_c0_c0 {
		font-size: 36rpx;
		font-weight: 500;
		color: #333;
		line-height: 36rpx;
	}

	.historicalFeedback_fd0_0_c1 {
		font-size: 36rpx;
		font-weight: 500;
		color: #333333;
		line-height: 50rpx;
	}

	.historicalFeedback_fd0_0_c2 {
		width: 36rpx;
		height: 36rpx;
	}

	.historicalFeedback_flex_0 {
		border-bottom: 1px solid #eee;
		background: #fff;
		background-size: 100% !important;
		width: 750rpx;
		height: 88rpx;
		overflow: hidden;
		z-index: 10;
		top: 0rpx;
		background-size: 100% auto !important;
	}

	.page {
		min-height: calc(100vh - var(--window-bottom));
		background: #fff;
		background-size: 100% auto !important;
	}
</style>